<table>
    <thead>
    <tr>
        @th_fields
    </tr>
    </thead>

    <tbody>
    {if !empty($listData)}

        {foreach from=$listData item=item}

            <tr>
                @td_fields
            </tr>

        {/foreach}

    {/if}
    </tbody>

</table>

<p><strong>Total de {$controller_name}:</strong> {$count}</p>